package com.example.lotteryticketdev.tool;

import com.example.lotteryticketdev.config.ConstantPropertiesForEmail;
import com.example.lotteryticketdev.entity.LuckyBall;
import com.sgq.MailConfig163;

import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class Main {

    public static void main(String[] args) {

        List<Integer> list = new ArrayList<>(Arrays.asList(4, 2, 1, 4, 5, 3));
        Integer integer = list.stream().max(Comparator.naturalOrder()).get();
        System.out.println("integer = " + integer);
      /*  list.remove(new Integer(4));
        System.out.println(list);*/
        System.out.println(list.indexOf(4));
    }
}
